Call the ->get_desired_size() method directly on the vtable
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 6 Apr 2010 06:53:51 +0000 (02:53 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 6 Apr 2010 06:53:51 +0000 (02:53 -0400)
This commit is a mistake, it should have been included with the last
commit.

gtk/gtksizegroup.c

index ca28d8912c22e1a7479a822a6551725c85616e2a..ea6a8e0c0ffae6248cd6106c573049d0557c85db 100644 (file)
@@ -678,10 +678,12 @@ do_size_request (GtkWidget *widget)
        */
       extended_minimum.width  = 0;
       extended_minimum.height = 0;
-      gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (widget),
-                                            &extended_minimum,
-                                            &aux_info->natural_size);
 
+      GTK_EXTENDED_LAYOUT_GET_IFACE
+       (widget)->get_desired_size (GTK_EXTENDED_LAYOUT (widget),
+                                   &extended_minimum,
+                                   &aux_info->natural_size);
+      
       /* Base the base widget requisition on both the size-requst and the extended layout size
        */
       widget->requisition.width  = MAX (widget->requisition.width,  extended_minimum.width);